﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Wy.JiZhangSoft.ZhangDans
{
    /// <summary>
    /// 记账
    /// </summary>
    public class ZhangDan : FullAuditedAggregateRoot<Guid>
    {
        public ZhangDan(Guid id):base(id)
        {
        }

        protected ZhangDan() { }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 原价
        /// </summary>
        public decimal? OriginPrice { get; set; }

        /// <summary>
        /// 收支类型
        /// </summary>
        public EnumShouZhiType ShouZhiType { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// 分类 标签
        /// </summary>
        public string Classified { get; set; }

        /// <summary>
        /// 评分
        /// </summary>
        public double Rate { get; set; }


        /// <summary>
        /// 描述
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public Guid? FileId { get; set; }
    }
}
